home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / utility / sysgraf4.zip / SOURCE.ZIP / SYSGRAPH.H < prev    next >
Text File  |  1991-06-06  |  4KB  |  98 lines

  1. /************************************************************************
  2. * This file holds all the defines for sysgraph.c
  3. *
  4. * Define ID equivelents:
  5. *    IDS  = String table ID
  6. *    IDMD = Menu dialog ID
  7. *    IDSD = Setup dialog ID
  8. *    IDAD = About dialog ID
  9. *    RGB  = Color value
  10. */
  11.  
  12. // Max tell-tails
  13. #define    NAME_SIZE    20        // Max program name length
  14. #define MAX_POINTS     40        // Max points to use in graph
  15. #define LAST_POINT      MAX_POINTS - 1    // Last point in graph
  16. #define MAX_POINTS_ALL    MAX_POINTS + 2    // All points plus end points
  17.  
  18. // String table
  19. #define    IDS_NAME        100    // Location of program name
  20.  
  21. // Setup dialog
  22. #define IDSD_1SEC        10    // Sets time to 1 sec
  23. #define IDSD_2SEC        11    // Sets time to 2 sec
  24. #define IDSD_5SEC        14      // Sets time to 5 sec
  25. #define IDSD_AUTO_RESCALE    20    // Auto Rescale check box
  26. #define IDSD_ON_TOP        30    // Keep on top check box
  27. #define IDSD_QUEUE        40    // Queue graph type button
  28. #define IDSD_INV_QUEUE        50    // Inverse queue graph type button
  29. #define IDSD_SAVE_SETUP        60    // Save setup button
  30. #define IDSD_ON_CAPTION        70    // Follow top window
  31.  
  32. // Program dialog menu
  33. #define IDMD_MINIMIZE        500    // Minimizes program
  34. #define IDMD_CLOSE        510    // Closes program
  35. #define IDMD_RESCALE        520    // Rescale graph button
  36. #define IDMD_SETUP        530    // Quit session button
  37. #define IDMD_ABOUT        540    // About Box button
  38.  
  39. // About dialog
  40. #define IDAD_VERSION        10    // Version list text
  41. #define IDAD_AUTHOR             20    // Author list text
  42. #define IDAD_WARE        30    // What is ware concept
  43. #define IDAD_VERSION_STR    "Version 4.00"
  44. #define IDAD_AUTHOR_STR        "By James S. Straub"
  45.  
  46. // Win.ini keywords for setup
  47. #define INI_NAME        "System Graph"    // These are the keyname
  48. #define VERSION_KEY        "Version"    //  fields in the win.ini
  49. #define GRAPH_TYPE_KEY        "GraphType"    //  file.
  50. #define UPDATE_TIME_KEY        "UpdateTime"
  51. #define AUTO_RESCALE_KEY    "AutoRescale"
  52. #define ON_TOP_KEY        "OnTop"
  53. #define ON_CAPTION_KEY        "OnCaption"
  54. #define ICONIC_KEY        "Iconic"
  55. #define WIN_LEFT_KEY        "WinLeft"
  56. #define WIN_TOP_KEY        "WinTop"
  57. #define WIN_RIGHT_KEY        "WinRight"
  58. #define WIN_BOTTOM_KEY        "WinBottom"
  59.  
  60. // Default settings
  61. #define DEF_WIN_LEFT        50        // Starting X pos window
  62. #define DEF_WIN_TOP        50        // Starting Y pos window
  63. #define DEF_WIN_RIGHT        150        // Width of program window
  64. #define DEF_WIN_BOTTOM        150        // Hight of program window
  65. #define DEF_UPDATE_TIME        IDSD_1SEC    // The default update time
  66. #define DEF_GRAPH_TYPE        IDSD_QUEUE    // Type of graph
  67. #define DEF_AUTO_RESCALE    FALSE        // Auto rescale setting
  68. #define DEF_ON_TOP        FALSE        // Keep on top
  69. #define DEF_ON_CAPTION        FALSE        // Keep on caption
  70. #define DEF_ICONIC        TRUE        // Start up state of window
  71.  
  72. // Misc defines
  73. #define THE_SKY_IS_BLUE        1        // For endless loops
  74. #define VERSION_NUMBER        4.00        // The version of this
  75. #define DEF_FRAME_WIDTH        2           // Width of frame in pixels
  76. #define STANDARD_STYLE        (WS_POPUP | WS_THICKFRAME | WS_BORDER)
  77.  
  78. // Color values
  79. #define RGB_YELLOW        0x0000FFFF    // These are RGB color values
  80. #define RGB_BLACK        0x00000000
  81. #define RGB_BLUE        0x00808000
  82. #define    RGB_WHITE        0x00FFFFFF
  83. #define    RGB_GRAY        0x00808080
  84. #define    RGB_LIGHT_GRAY        0x00C0C0C0
  85.  
  86.  
  87. /************************************************************************
  88. * Function prototypes
  89. */
  90. long FAR PASCAL MainProc(HWND, unsigned, WORD, LONG);
  91. BOOL FAR PASCAL SetupDialog(HWND, unsigned, WORD, LONG);
  92. BOOL FAR PASCAL AboutDialog(HWND, unsigned, WORD, LONG);
  93. BOOL FAR PASCAL WareDialog(HWND, unsigned, WORD, LONG);
  94. BOOL FAR PASCAL MenuDialog(HWND, unsigned, WORD, LONG);
  95. BOOL            SetProgramTimer(int);
  96.  
  97.  
  98.